﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPattern.StrategyPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            //策略模式就是传递进来不同的对象
            StrategyContext context = new StrategyContext(new DiscountB());
            context.GetContextDiscount();
            Console.ReadKey();
        }
    }
}
